package com.qianji.petmall.order.feign;

import com.qianji.common.utils.R;
import com.qianji.petmall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author liang zai
 * @date 2022/4/26 17:11
 * @description
 */
@FeignClient("petmall-ware")
public interface WareFeignService {
    @PostMapping("/ware/waresku/skuStock")
    R skuStock(@RequestParam List<Long> skuId);

    @GetMapping("/ware/wareinfo/fare")
    R getFare(@RequestParam("addrId") Long addrId);

    @PostMapping("/ware/waresku/orderLock")
    R orderLock(@RequestBody WareSkuLockVo vo);
}
